/**
 * Created by dyt on 2018/9/29.
 */
$(function () {
    /*给分类加颜色*/
    $(".menu h2").each(function (i) {
        if (i == 1) {
            $(this).addClass("menu-title_2nd")
        } else if (i == 2) {
            $(this).addClass("menu-title_3rd")
        } else if (i == 3) {
            $(this).addClass("menu-title_4th")
        }
    })
    /*时钟js*/
    $("#myclock").thooClock({
        size:100,
        dialColor:"#8dea75",
        minuteHandColor:"#4cc5f4",
        hourHandColor:"#6830cb"
    });

})
function trim(str){
    return str.replace(/(^\s*)|(\s*$)/g,"")||"";
}

